using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class OrderStratConfiguration : EntityTypeConfiguration<OrderStrat>
    {
        public OrderStratConfiguration()
        {
            Property(g => g.OrderStratID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
            
            Property(g => g.Modified).IsOptional();
            
            Property(g => g.CreateFollowUpPicks).IsOptional();
            Property(g => g.CreateGoodsOutOrder).IsOptional();
            Property(g => g.ManualCreationIndex).IsOptional();
            Property(g => g.Name).IsOptional();
            Property(g => g.PreferMatchingStock).IsOptional();
            Property(g => g.PreferUnopened).IsOptional();
            Property(g => g.UseLockedLot).IsOptional();
            Property(g => g.UseLockedStock).IsOptional();
            Property(g => g.ClientID).IsOptional();
            Property(g => g.DefaultDestinationID).IsRequired();
        }
    }
}